import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  // 在这里定义你的路由
  {
    path: '/',
    name: 'ai',
    component: () => import('@/views/ai-index.vue')
  },
  {
    path: '/user',
    name: 'user',
    component: () => import('@/views/userList.vue')
  }
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes,
})

export default router
